//
//  NAddCell.m
//  ieGou
//
//  Created by 嚷蜗痕殇心 on 15/1/29.
//  Copyright (c) 2015年 chaox. All rights reserved.
//

#import "NAddCell.h"

@implementation NAddCell
- (void)dealloc
{
    [_tuImage release];
    [_qianImage release];
    [_jieLabel release];
    [_moneyLabel release];
    [_shouLabel release];
    [_numberLabel release];
    [super dealloc];
}
- (instancetype)initWithStyle:(UITableViewCellStyle)style reuseIdentifier:(NSString *)reuseIdentifier
{
    self = [super initWithStyle:style reuseIdentifier:reuseIdentifier];
    if (self) {
       
        self.tuImage = [[UIImageView alloc]init];
        _tuImage.backgroundColor = [UIColor cyanColor];
        [self.contentView addSubview:_tuImage];
        [_tuImage release];
        
        self.jieLabel = [[UILabel alloc]init];
        self.jieLabel.text = @"1111";
        [self.contentView addSubview:_jieLabel];
        [_jieLabel release];
        
        self.qianImage = [[UIImageView alloc]init];
        [self.contentView addSubview:_qianImage];
        [_qianImage release];
        
        self.moneyLabel = [[UILabel alloc]init];
        self.moneyLabel.text = @"1111";
        [self.contentView addSubview:_moneyLabel];
        [_moneyLabel release];
        
        self.shouLabel = [[UILabel alloc]init];
        self.shouLabel.text = @"1111";
        [self.contentView addSubview:_shouLabel];
        [_shouLabel release];
        
        self.numberLabel = [[UILabel alloc]init];
        self.numberLabel.text = @"1111";
        [self.contentView addSubview:_numberLabel];
        [_numberLabel release];
        
    }
    return self;
}
- (void)layoutSubviews
{
    self.tuImage.frame = CGRectMake(10, 10, 90, 60);
    self.jieLabel.frame = CGRectMake(120, 10, 200, 30);
    self.qianImage.frame = CGRectMake(120, 40, 25, 30);
    self.moneyLabel.frame = CGRectMake(150, 40, 80, 30);
    self.shouLabel.frame = CGRectMake(250, 40, 60, 30);
    self.numberLabel.frame = CGRectMake(285, 40, 60, 30);
}
- (void)awakeFromNib {
    // Initialization code
}

- (void)setSelected:(BOOL)selected animated:(BOOL)animated {
    [super setSelected:selected animated:animated];

    // Configure the view for the selected state
}

@end
